#include"BoxModel.h"

/////////////////
//include
/////////////////
#include"PMD.h"
#include"ContentManager.h"
/////////////////
//prottype
/////////////////

/////////////////
//const
/////////////////


BoxModel::BoxModel(Vector3D size)
{
	vertex = Array<Vector3D>(8);
	/*for(int i = 0;i<2;i++)
		for(int j = 0;j<2;j++)
			for(int k = 0;k<2;k++)
				vertex[i*4+j*2+k] =  Vector3D(i*2-1,j*2-1,k*2-1);*/

	/*vertex[0] = Vector3D(-1,1,1);
	vertex[1] = Vector3D(1,1,-1);
	vertex[2] = Vector3D(1,1,1);
	vertex[3] = Vector3D(-1,1,-1);
	vertex[4] = Vector3D(0,0,0);
	vertex[5] = Vector3D(0,0,0);
	vertex[6] = Vector3D(0,0,0);
	vertex[7] = Vector3D(0,0,0);*/

}
BoxModel::~BoxModel()
{

}
void BoxModel::CreateBuffer(Device* device)
{
	CollisionModel::CreateBuffer(device);
	model = ContentManager::LoadModel("Resource/","CollisionBox.pmd");
}
void BoxModel::Draw(DeviceContext* device_context)
{
	//CollisionModel::Draw(device_context);

	model->Draw(device_context);
}